package cn.javass.test.sample.bussiness.ebo;

import java.util.List;

import cn.javass.test.sample.bussiness.ebi.Userebi;
import cn.javass.test.sample.dao.dao.UserDao;
import cn.javass.test.sample.dao.factory.Dpfactory;
import cn.javass.test.sample.vo.UserModel;

public class Userebo implements Userebi {

	@Override
	public boolean create(UserModel user) {
		UserDao apiUserDao = Dpfactory.creatUserDao();
		return apiUserDao.create(user);
	}

	@Override
	public boolean update(UserModel user) {
		UserDao apiUerDao = Dpfactory.creatUserDao();
		return apiUerDao.update(user);
	}

	@Override
	public boolean delete(UserModel user) {
		UserDao apiUserDao = Dpfactory.creatUserDao();	
		return apiUserDao.delete(user);
	}

	@Override
	public List<UserModel> getAll() {
		UserDao apiUserDao = Dpfactory.creatUserDao();	
		return apiUserDao.getAll();
	}

	@Override
	public UserModel getSingle(int uuid) {
		UserDao apiUserDao = Dpfactory.creatUserDao();	
		return apiUserDao.getSingle(uuid);
	}

}
